package com.ywgt.test;

public class PathSplit {
    public static void main(String[] args) {
        String path="http://172.20.10.5:8080/group1/M00/00/00/rBQKBWACfzaAO-9hAACc-_xa8_M742.jpg";

        String[] split = path.split("/");
        /*for (String s : split) {
            System.out.println(s);
        }*/
        int length = split[3].length();
        String substring = path.substring(path.lastIndexOf(split[3]) + length+1);
        System.out.println(split[3]);
        System.out.println(substring);
    }
}
